require 'classes'
require 'threads'

class("Irrlicht", Object)

function Irrlicht:_construct(...) 
    self:superClass()._construct(self, ...)
    
    local width, height = ...
    self.irr = SG2.callback_function(IrrlichtInterface_construct, width, height)
    
end

function Irrlicht:isRunning()
    return SG2.callback_function(IrrlichtInterface_isRunning, self.irr)
end

function Irrlicht:doFrame()
    SG2.callback_function(IrrlichtInterface_mainLoop, self.irr)
end
